i = input() |
print("Enter 5 numbers, at least one should be a six") |
entered = True |
for x in range(5): |
entered = False |
print(entered) |
if i == "6": |
    i = input() |
print("Enter 5 numbers, at least one should be a six") |
        entered = True |
for x in range(5): |
entered = False |
print(entered) |
    if i == "6": |
1 | entered = False |
2 | print("Enter 5 numbers, at least one should be a six") |
3 | for x in range(5): |
4 |     i = input() |
5 |     if i == "6": |
6 |         entered = True |
7 | print(entered) |
i = input() |
print("Enter 5 numbers, at least one should be a six") |
if i%2 == 0: |
for x in range(5): |
even = False |
i = int(i) |
even = True |
print(entered) |
    i = input() |
print("Enter 5 numbers, at least one should be a six") |
    if i%2 == 0: |
for x in range(5): |
even = False |
    i = int(i) |
        even = True |
print(entered) |
1 | even = False |
2 | print("Enter 5 numbers, at least one should be a six") |
3 | for x in range(5): |
4 |     i = input() |
5 |     i = int(i) |
6 |     if i%2 == 0: |
7 |         even = True |
8 | print(entered) |
if len(i) >= 8: |
i = input() |
for x in range(3): |
long = False |
long = True |
print("Enter three passwords, at least one should be longer than 8 characters") |
print(long) |
    if len(i) >= 8: |
    i = input() |
for x in range(3): |
long = False |
        long = True |
print("Enter three passwords, at least one should be longer than 8 characters") |
print(long) |
1 | print("Enter three passwords, at least one should be longer than 8 characters") |
2 | long = False |
3 | for x in range(3): |
4 |     i = input() |
5 |     if len(i) >= 8: |
6 |         long = True |
7 | print(long) |
allgood = True |
for x in range(3): |
allgood = False |
print("Enter three passwords, at least one should be longer than 8 characters") |
if len(i) > 5: |
print(allgood) |
i = input() |
allgood = True |
for x in range(3): |
        allgood = False |
print("Enter three passwords, at least one should be longer than 8 characters") |
    if len(i) > 5: |
print(allgood) |
    i = input() |
1 | print("Enter three passwords, at least one should be longer than 8 characters") |
2 | allgood = True |
3 | for x in range(3): |
4 |     i = input() |
5 |     if len(i) > 5: |
6 |         allgood = False |
7 | print(allgood) |
i = input() |
allgood = True |
print("Invalid") |
if len(i) > 5: |
for x in range(3): |
allgood = False |
else: |
print("Enter three passwords, at least one should be longer than 8 characters") |
if allgood == True: |
print("Well Done") |
    i = input() |
allgood = True |
    print("Invalid") |
    if len(i) > 5: |
for x in range(3): |
        allgood = False |
else: |
print("Enter three passwords, at least one should be longer than 8 characters") |
if allgood == True: |
    print("Well Done") |
1 | print("Enter three passwords, at least one should be longer than 8 characters") |
2 | allgood = True |
3 | for x in range(3): |
4 |     i = input() |
5 |     if len(i) > 5: |
6 |         allgood = False |
7 | if allgood == True: |
8 |     print("Well Done") |
9 | else: |
10 |     print("Invalid") |
i = input() |
else: |
i = int(i) |
if even == True and odd == True: |
print(True) |
odd = True |
else: |
print(False) |
even = True |
print("Enter 6 numbers, at least one must be even and one must be odd") |
odd = False |
for x in range(len(6)): |
even = False |
if i%2 == 0: |
    i = input() |
    else: |
    i = int(i) |
if even == True and odd == True: |
    print(True) |
        odd = True |
else: |
    print(False) |
        even = True |
print("Enter 6 numbers, at least one must be even and one must be odd") |
odd = False |
for x in range(len(6)): |
even = False |
    if i%2 == 0: |
1 | even = False |
2 | odd = False |
3 | print("Enter 6 numbers, at least one must be even and one must be odd") |
4 | for x in range(len(6)): |
5 |     i = input() |
6 |     i = int(i) |
7 |     if i%2 == 0: |
8 |         even = True |
9 |     else: |
10 |         odd = True |
11 | if even == True and odd == True: |
12 |     print(True) |
13 | else: |
14 |     print(False) |
15 |      |
16 |
print(allgood) |
allgood = True |
i = input() |
print("Enter 6 strings with lengths of between 2 and 6") |
if len(i) < 2 or len(i) > 6: |
for x in range(6): |
allgood = False |
print(allgood) |
allgood = True |
    i = input() |
print("Enter 6 strings with lengths of between 2 and 6") |
    if len(i) < 2 or len(i) > 6: |
for x in range(6): |
        allgood = False |
1 | allgood = True |
2 | print("Enter 6 strings with lengths of between 2 and 6") |
3 | for x in range(6): |
4 |     i = input() |
5 |     if len(i) < 2 or len(i) > 6: |
6 |         allgood = False |
7 |          |
8 | print(allgood) |
print(allnumbers) |
allnumbers = False |
if i.isdigit() == False: |
for x in range(3): |
print("Enter 3 numbers") |
allnumbers = True |
i = input() |
print(allnumbers) |
        allnumbers = False |
    if i.isdigit() == False: |
for x in range(3): |
print("Enter 3 numbers") |
allnumbers = True |
    i = input() |
1 | allnumbers = True |
2 | print("Enter 3 numbers") |
3 | for x in range(3): |
4 |     i = input() |
5 |     if i.isdigit() == False: |
6 |         allnumbers = False |
7 | print(allnumbers) |
else: |
print("Enter 4 inputs that start with a,b or c") |
if i[0] != "a" and i[0] != "b" and i[0] != "c": |
allStart = False |
print("That wasn't what I asked for") |
allStart = True |
if allStart == True: |
for x in range(4): |
print("Nice") |
i = input() |
else: |
print("Enter 4 inputs that start with a,b or c") |
    if i[0] != "a" and i[0] != "b" and i[0] != "c": |
        allStart = False |
    print("That wasn't what I asked for") |
allStart = True |
if allStart == True: |
for x in range(4): |
    print("Nice") |
    i = input() |
1 | allStart = True |
2 | print("Enter 4 inputs that start with a,b or c") |
3 | for x in range(4): |
4 |     i = input() |
5 |     if i[0] != "a" and i[0] != "b" and i[0] != "c": |
6 |         allStart = False |
7 | if allStart == True: |
8 |     print("Nice") |
9 | else: |
10 |     print("That wasn't what I asked for") |
11 |      |
print(True) |
i = int(i) |
i = input() |
if i == 100: |
foundOneHundred = True |
aboveFifty = True |
if aboveFifty == True and foundOneHundred == True: |
if i < 50: |
aboveFifty = False |
print("Enter 5 numbers, all above 50 and one must be 100") |
for x in range(5): |
print(False) |
foundOneHundred = False |
else: |
    print(True) |
    i = int(i) |
    i = input() |
    if i == 100: |
        foundOneHundred = True |
aboveFifty = True |
if aboveFifty == True and foundOneHundred == True: |
    if i < 50: |
        aboveFifty = False |
print("Enter 5 numbers, all above 50 and one must be 100") |
for x in range(5): |
    print(False) |
foundOneHundred = False |
else: |
1 | aboveFifty = True |
2 | foundOneHundred = False |
3 | print("Enter 5 numbers, all above 50 and one must be 100") |
4 | for x in range(5): |
5 |     i = input() |
6 |     i = int(i) |
7 |     if i < 50: |
8 |         aboveFifty = False |
9 |     if i == 100: |
10 |         foundOneHundred = True |
11 | if aboveFifty == True and foundOneHundred == True: |
12 |     print(True) |
13 | else: |
14 |     print(False) |
15 |          |
print("Incorrect") |
valid = False |
else: |
valid = True |
for x in range(3): |
if i%3 != 0: |
if len(i) != 5: |
print("Enter three numbers that are 5 digits long and divisible by 3") |
valid = False |
i = input() |
print("That is correct") |
i = int(i) |
if valid == True: |
    print("Incorrect") |
        valid = False |
else: |
valid = True |
for x in range(3): |
    if i%3 != 0: |
    if len(i) != 5: |
print("Enter three numbers that are 5 digits long and divisible by 3") |
        valid = False |
    i = input() |
    print("That is correct") |
    i = int(i) |
if valid == True: |
1 | valid = True |
2 | print("Enter three numbers that are 5 digits long and divisible by 3") |
3 | for x in range(3): |
4 |     i = input() |
5 |     if len(i) != 5: |
6 |         valid = False |
7 |     i = int(i) |
8 |     if i%3 != 0: |
9 |         valid = False |
10 | if valid == True: |
11 |     print("That is correct") |
12 | else: |
13 |     print("Incorrect") |
if i != x+1: |
inOrder = True |
for x in range(10): |
inOrder = False |
print("Enter the numbers 1-10 in order") |
i = input() |
i = int(i) |
print(inOrder) |
    if i != x+1: |
inOrder = True |
for x in range(10): |
        inOrder = False |
print("Enter the numbers 1-10 in order") |
    i = input() |
    i = int(i) |
print(inOrder) |
1 | inOrder = True |
2 | print("Enter the numbers 1-10 in order") |
3 | for x in range(10): |
4 |     i = input() |
5 |     i = int(i) |
6 |     if i != x+1: |
7 |         inOrder = False |
8 | print(inOrder) |
9 |   |
previous = i |
larger = True |
previous = 0 |
i = int(i) |
print(larger) |
if i <= previous: |
for x in range(len(5)): |
larger = False |
i = input() |
print("Enter 5 numbers, each should be larger than the last") |
    previous = i |
larger = True |
previous = 0 |
    i = int(i) |
print(larger) |
    if i <= previous: |
for x in range(len(5)): |
        larger = False |
    i = input() |
print("Enter 5 numbers, each should be larger than the last") |
1 | larger = True |
2 | print("Enter 5 numbers, each should be larger than the last") |
3 | previous = 0 |
4 | for x in range(len(5)): |
5 |     i = input() |
6 |     i = int(i) |
7 |     if i <= previous: |
8 |         larger = False |
9 |     previous = i |
10 | print(larger) |
previous = i |
previous = 0 |
print(larger) |
larger = True |
i = input() |
print("Enter 5 numbers, each should be larger than the last") |
larger = False |
i = int(i) |
if i <= previous and x != 0: |
for x in range(len(5)): |
    previous = i |
previous = 0 |
print(larger) |
larger = True |
    i = input() |
print("Enter 5 numbers, each should be larger than the last") |
        larger = False |
    i = int(i) |
    if i <= previous and x != 0: |
for x in range(len(5)): |
1 | larger = True |
2 | print("Enter 5 numbers, each should be larger than the last") |
3 | previous = 0 |
4 | for x in range(len(5)): |
5 |     i = input() |
6 |     i = int(i) |
7 |     if i <= previous and x != 0: |
8 |         larger = False |
9 |     previous = i |
10 | print(larger) |
if len(i) != lenReq: |
lenReq = 6 - x #start at 6 as you minus 0 |
print("Enter a " + lenReq + " letter word") |
i = input() |
valid = False |
print(valid) |
for x in range(4): |
valid = True |
    if len(i) != lenReq: |
    lenReq = 6 - x #start at 6 as you minus 0 |
    print("Enter a " + lenReq + " letter word") |
    i = input() |
        valid = False |
print(valid) |
for x in range(4): |
valid = True |
1 | valid = True |
2 | for x in range(4): |
3 |     lenReq = 6 - x #start at 6 as you minus 0 |
4 |     print("Enter a " + lenReq + " letter word") |
5 |     i = input() |
6 |     if len(i) != lenReq: |
7 |         valid = False |
8 | print(valid) |
9 |      |